package com.mobipe.sutto.core;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author kohachiro
 * 
 */
public abstract  class AbstractServer {
	public static int PORT = 7701;	
    public static ExecutorService threadPool;
	public static InterfaceServerHandler callbackHandler;    
    /**
     * @return 
     * 
     */
	public AbstractServer() {
//		threadPool = new ThreadPoolExecutor(Runtime.getRuntime().availableProcessors(), 16 ,
//				300, TimeUnit.SECONDS, new SynchronousQueue<Runnable>(), new ThreadFactoryImpl("BUSINESSTHREADPOOL"));	
		threadPool = Executors.newCachedThreadPool(new ThreadFactoryImpl("BUSINESSTHREADPOOL"));
	}
	public abstract void start();	

	public abstract void bind() throws Exception ;	
}
